package interface接口;
//测试类，快捷键alt+enter,查看问题解决方案
public class maintest {
    public static void main(String[] args) {
        dog d = new dog();
        d.setName("五仁");
        d.setAge(2);
        d.eat();
        d.swim();

        cat c = new cat(1,"小花");
        c.eat();
        c.swim();
    }
}
